DXL combobox

How I can add some item retrived from a group to a comboBox, and add of course the combobox to a column?
Thanks
mikimichele82 - Tue Jul 14 09:18:43 EDT 2009

Re: DXL combobox
llandale - Tue Jul 14 13:35:32 EDT 2009

What's a 'comboBox'?

Some DBEs require you to 'realize' the dialog, then populate the DBE, then 'show' the DB.

  • Louie

Re: DXL combobox
mikimichele82 - Wed Jul 15 03:14:38 EDT 2009

I would like to add a comboBox for each new line in the requirements table's module to choose among the stakeholders the responsible for each requirement

With this code I get the list of groups in the database:

Group group
string gName10={}

int i=0
for group in groupList do {
string gName[i] = group.name
i=i+1
}

Now I would like to write the groups in gName in a comboBox to allow the user to choose the one he wants

I guess now is more clear...

Someone can help me?

Thanks

Re: DXL combobox
mikimichele82 - Wed Jul 15 04:54:49 EDT 2009

mikimichele82 - Wed Jul 15 03:14:38 EDT 2009
I would like to add a comboBox for each new line in the requirements table's module to choose among the stakeholders the responsible for each requirement

With this code I get the list of groups in the database:

Group group
string gName10={}

int i=0
for group in groupList do {
string gName[i] = group.name
i=i+1
}

Now I would like to write the groups in gName in a comboBox to allow the user to choose the one he wants

I guess now is more clear...

Someone can help me?

Thanks

SOLVED!

Module m = current
Group group
int i=0

string temp =""
int numVal = 0

for group in groupList do{
numVal = numVal + 1
}

string names numVal = ""

for group in groupList do{
names[i] = group.name
i = i + 1
}

AttrType at = create("usr", names, temp)



...and then I created a new attribute multi-valued using the attribute just created